Description of Boolean Type in JavaScript systems, javascriptboolean
Previous
The Boolean type can be the simplest of the three packaging objects: Number, String, and Boolean. Number and String objects have a large Number of instance attributes and
This article mainly introduces the knowledge points of Boolean objects in javascript, explains the basic usage of Boolean objects, and provides a detailed introduction to the Code. If you are interested, you can refer
Syntax for creating a Boolean
The Boolean object represents two values: & quot; true & quot; or & quot; false & quot ;. Syntax for creating a Boolean object: newBoolean (value); // constructor Boolean (value ); // The value of the conversion function parameter is stored by a
constructor functionNew Boolean (value)constructor functionBoolean (value)Conversion function parameter The value that is stored by the Boolean object or the value to be converted to a Boolean value returns worth as a constructor (with operator new)
Boolean object
Boolean indicates two values: "true" or "false ".
Syntax for creating a Boolean object:
New Boolean (value); // Constructor
Boolean (value); // Conversion Function
Parameters
The parameter value is the value stored by a Boolean object
to create the syntax for a Boolean object: New Boolean (value); //constructor & nbsp; Boolean (value); //conversion function parameter value The value held by a Boolean object or the value to convert to a Boolean value.
Article Author: TyanBlog: noahsnail.com | CSDN | Jane book 1. The return value of JavaScript
The return values in JavaScript are grouped into four categories:
Return
return false;
return true;
return variable (variable);
These four return values
I. type conversion
1. Convert to string
ECMAScript's Boolean values, numbers, and string values are interesting because they are pseudo objects, which means they actually have attributes and methods.For example:Js CodeVar sColor = "blue ";Alert
Directory1 History 2 clarifying misunderstandings 3 basic concepts 4 features 5 different from Java 6 development toolsHistoryProbably in 1992, a company called Nombas began developing an embedded scripting language called C-minus (C-minus-minus, or
One, JavaScript data typeThe data types of JavaScript fall into the following categories:Five simple data types: Undefined,null,boolean,string,number.A complex data type: Object.Second, typeof operatorHere are a few short stories to summarize it,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.